<!doctype html>
<html>
<head>
  <title>Learning jQuery</title>
  <meta charset="utf-8" />
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
  <style>
  
    .square {
      width:200px;
      height:200px;
      background-color:red;
      margin-top:10px;
    }
    
    #circle {
      width:200px;
      height:200px;
      border-radius:100px;
      background-color:green;    
    }
  </style>
</head>

<body>
<div>
  <div id="circle"></div>
  <p>This is some text!</p>
  <iframe src="http://www.cnn.com"></iframe>
  <script type="text/javascript">
/*    if (typeof jQuery != "undefined") {
      alert("jQuery is installed.");
    }
    else {
      alert("jQuery is not installed.");
    }
*/    
/*    $("#circle").click(function() {
      $("p").html("The text is changed!");
    });
*/    
/*    $("#circle").click(function() {
      alert($("p").html());
    });
    */
/*    $("div").click(function() {
      alert("Div clicked!");
    });
*/    
/*    $("#circle").hover(function() {
      $("p").html("Changed");
    });
*/    
    $("#circle").hover(function() {
      $("iframe").attr("src", "http://www.ecowebhosting.co.uk");
      //alert($("iframe").attr("src"));
    });
  </script>
</div>
</body>
</html>
